package cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.service;

import cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.entity.Standard;
import cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.mapper.StandardMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StandardService {
    @Autowired
    private StandardMapper standardMapper;

    //增加

    public String save(Standard standard){
        if(standardMapper.save(standard)){
            return "保存成功";
        }
        return "保存失败";
    }

    //删除
    public String delete(Long id){
        if(standardMapper.delete(id)){
            return "删除成功";
        }
        return "删除失败";
    }
}
